package com.core.type;

import com.core.io.Resource;
import com.core.io.ResourceLoader;

import java.io.IOException;
import java.util.Map;

public class CachingMetadataReaderFactory extends SimpleMetadataReaderFactory{

    private Map<Resource, MetadataReader> metadataReaderCache;


    public CachingMetadataReaderFactory() {
        super();
//        setCacheLimit(DEFAULT_CACHE_LIMIT);
    }

    @Override
    public MetadataReader getMetadataReader(String className) throws IOException {
        return null;
    }

    @Override
    public MetadataReader getMetadataReader(Resource resource) throws IOException {
        MetadataReader metadataReader = this.metadataReaderCache.get(resource);
        return metadataReader;
    }
}
